
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont">&#xe631;</i>
                    <div class="name">扫一扫</div>
                    <div class="code">&amp;#xe631;</div>
                    <div class="fontclass">.saoyisao</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe670;</i>
                    <div class="name">钱包</div>
                    <div class="code">&amp;#xe670;</div>
                    <div class="fontclass">.qianbao</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe820;</i>
                    <div class="name">消息</div>
                    <div class="code">&amp;#xe820;</div>
                    <div class="fontclass">.xiaoxi</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe60c;</i>
                    <div class="name">我的</div>
                    <div class="code">&amp;#xe60c;</div>
                    <div class="fontclass">.wode</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe626;</i>
                    <div class="name">swt-icon-公车</div>
                    <div class="code">&amp;#xe626;</div>
                    <div class="fontclass">.swticongongche</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe632;</i>
                    <div class="name">swt-icon-酒店</div>
                    <div class="code">&amp;#xe632;</div>
                    <div class="fontclass">.swticonjiudian</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe62c;</i>
                    <div class="name">swt-icon-家政 (2)</div>
                    <div class="code">&amp;#xe62c;</div>
                    <div class="fontclass">.swticonjiazheng2</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe635;</i>
                    <div class="name">swt-icon-快递 (2)</div>
                    <div class="code">&amp;#xe635;</div>
                    <div class="fontclass">.swticonkuaidi2</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe640;</i>
                    <div class="name">swt-icon-天气 (1)</div>
                    <div class="code">&amp;#xe640;</div>
                    <div class="fontclass">.swticontianqi1</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe61a;</i>
                    <div class="name">swt-icon-足球</div>
                    <div class="code">&amp;#xe61a;</div>
                    <div class="fontclass">.swticonzuqiu</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe617;</i>
                    <div class="name">swt-icon-优惠券_文字</div>
                    <div class="code">&amp;#xe617;</div>
                    <div class="fontclass">.swticonyouhuiquanwenzi</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe621;</i>
                    <div class="name">swt-icon-订餐 (1)</div>
                    <div class="code">&amp;#xe621;</div>
                    <div class="fontclass">.swticondingcan1</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe622;</i>
                    <div class="name">swt-icon-订餐</div>
                    <div class="code">&amp;#xe622;</div>
                    <div class="fontclass">.swticondingcan</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe63b;</i>
                    <div class="name">swt-icon-旅游</div>
                    <div class="code">&amp;#xe63b;</div>
                    <div class="fontclass">.swticonlvyou</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe62e;</i>
                    <div class="name">swt-icon-家政员</div>
                    <div class="code">&amp;#xe62e;</div>
                    <div class="fontclass">.swticonjiazhengyuan</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe630;</i>
                    <div class="name">swt-icon-教育</div>
                    <div class="code">&amp;#xe630;</div>
                    <div class="fontclass">.swticonjiaoyu</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe616;</i>
                    <div class="name">swt-icon-音乐</div>
                    <div class="code">&amp;#xe616;</div>
                    <div class="fontclass">.swticonyinle</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe642;</i>
                    <div class="name">swt-icon-天气</div>
                    <div class="code">&amp;#xe642;</div>
                    <div class="fontclass">.swticontianqi</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe623;</i>
                    <div class="name">swt-icon-二维码</div>
                    <div class="code">&amp;#xe623;</div>
                    <div class="fontclass">.swticonerweima</div>
                </li>
            
                <li>
                <i class="icon iconfont">&#xe61b;</i>
                    <div class="name">swt-icon-座机</div>
                    <div class="code">&amp;#xe61b;</div>
                    <div class="fontclass">.swticonzuoji</div>
                </li>
            
        </ul>


        <div class="helps">
            第一步：使用font-face声明字体
            <pre>
@font-face {font-family: 'iconfont';
    src: url('iconfont.eot'); /* IE9*/
    src: url('iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('iconfont.woff') format('woff'), /* chrome、firefox */
    url('iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
    url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}
</pre>
第二步：定义使用iconfont的样式
            <pre>
.iconfont{
    font-family:"iconfont" !important;
    font-size:16px;font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;}
</pre>
第三步：挑选相应图标并获取字体编码，应用于页面
<pre>
&lt;i class="iconfont"&gt;&amp;#x33;&lt;/i&gt;
</pre>
        </div>

    </div>
</body>
</html>
